#include <stdio.h>
#include<math.h>
#define rows 3
#define cols 4

int main() {
	
 int i,j,sum=0,a[rows][cols];
 
 printf("ENTER the integer elements at a 3*4 2D-array:");
 
 
 for(i=0;i<rows;i++){
     for(j=0;j<cols;j++)
    scanf("%d",&a[i][j]) ;
 }
 
 
   for(i=0;i<rows;i++){
       for(j=0;j<cols;j++)
       if(a[i][j]%2==0)
       sum+=a[i][j];
   } 
   
   
   printf("The sum of the even array elements =%d",sum);
    
    return 0;
}
